<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            height:300px;
            width:200px;
            position:absolute;
        }
    </style>
    <script type="text/javascript" src="jquery-1.11.1.min.js"></script>
    <script>
        $(function(){
            $("#btn").click(function(){

                //animate()：自定义动画
                $("div").animate({
                 //   "font-family":"微软雅黑"
                    "font-size":"30px",
                    "left":"200px"
                },2000,function(){
                    alert("自定义动画执行完毕");
                })
            })
        })
    </script>
</head>
<body>
<input type="button" value="自定义动画" id="btn">
<div>这是一段文字</div>
</body>
</html>